const isSupportCustomNav = (systemInfo) => {
	systemInfo = systemInfo || uni.getSystemInfoSync();
	return ['mp-weixin', 'app', 'web', 'mp-baidu', 'mp-kuaishou'].includes(systemInfo.uniPlatform)
}
export const getNavHeightTop = () => {
	let systemInfo = uni.getSystemInfoSync();
	const isSupCustomNav = isSupportCustomNav(systemInfo);
	let statusBarHeight = isSupCustomNav ? systemInfo.statusBarHeight : 0;
	let navHeight = uni.upx2px(88);

	return {
		statusBarHeight,
		navHeight,
		navTotalHeight: statusBarHeight + navHeight,
	}
}